projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24f1d5
)
[!HAVE_H_ERRNO]: Declare h_errno.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 25 Jul 1994 20:47:57 +0000
(20:47 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 25 Jul 1994 20:47:57 +0000
(20:47 +0000)
(Fopen_network_stream): Set h_errno to 0 initially.
src/process.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index 013a31289799eeffc5806f0784a3e7142d731f82..43d569b201bf0443d3a8e3041b0fac876bf1cabd 100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-135,6
+135,10
@@
extern char *strerror ();
extern char *sys_errlist[];
#endif
+#ifndef HAVE_H_ERRNO
+extern int h_errno;
+#endif
+
#ifndef SYS_SIGLIST_DECLARED
#ifndef VMS
#ifndef BSD4_1
@@
-1516,6
+1520,9
@@
Fourth arg SERVICE is name of the service desired, or an integer\n\
#ifndef TERM
while (1)
{
+#ifdef TRY_AGAIN
+ h_errno = 0;
+#endif
host_info_ptr = gethostbyname (XSTRING (host)->data);
#ifdef TRY_AGAIN
if (! (host_info_ptr == 0 && h_errno == TRY_AGAIN))